package com.dp;

import com.dp.bean.UserService;

/**
 * @author:defuzhu
 * 测试 IOC 效果
 */
public class TestIOC {
    public static void main(String args[]) {
        MyApplicationContext myApplicationContext = new MyApplicationContext();
        UserService userService = (UserService)myApplicationContext.getBean("userService");
        userService.findUser("张三");
    }
}
